package com.douqu.game.mergeManager.mergeUtils;

import com.douqu.game.core.database.model.UserModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-03-24 15:47
 */
public class MergePlayer {

    private int id;

    private UserModel userModel;

    private List<ServerMergePlayer> playerList;

    public MergePlayer(UserModel userModel)
    {
        this.userModel = userModel;
        this.playerList = new ArrayList<>();
    }

    public void addPlayer(ServerMergePlayer player)
    {
        playerList.add(player);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UserModel getUserModel() {
        return userModel;
    }

    public void setUserModel(UserModel userModel) {
        this.userModel = userModel;
    }

    public List<ServerMergePlayer> getPlayerList() {
        return playerList;
    }

    public void setPlayerList(List<ServerMergePlayer> playerList) {
        this.playerList = playerList;
    }
}
